package com.itcam.lease.web.admin.mapper;

import com.itcam.lease.model.entity.SystemUser;
import com.itcam.lease.web.admin.vo.system.user.SystemUserItemVo;
import com.itcam.lease.web.admin.vo.system.user.SystemUserQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SystemUserMapper extends BaseMapper<SystemUser> {

    /**
     * 根据条件分页查询后台用户列表
     * @param page
     * @param queryVo
     * @return
     */
    IPage<SystemUserItemVo> pageSystemUserByQuery(IPage<SystemUser> page, SystemUserQueryVo queryVo);

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    SystemUser selectOneByUsername(String username);
}




